package com.example.administrator.hqq.View;

import android.content.Context;
import android.support.v7.widget.LinearSmoothScroller;

import static android.support.v7.widget.LinearSmoothScroller.SNAP_TO_START;

/**
 * @name: HQQ
 * @describe:
 * @author: 康海涛 QQ2541849981
 * @time: 2019/1/15 15:11
 * @remark:
 */
public class TopSmoothScroller extends LinearSmoothScroller {
    public TopSmoothScroller(Context context) {
        super(context);
    }
    @Override
    protected int getHorizontalSnapPreference() {
        return SNAP_TO_START;//具体见源码注释
    }
    @Override
    protected int getVerticalSnapPreference() {
        return SNAP_TO_START;//具体见源码注释
    }
}
